﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000F9 RID: 249
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BattleEventBattleInfo : IMessage<BattleEventBattleInfo>, IMessage, IEquatable<BattleEventBattleInfo>, IDeepCloneable<BattleEventBattleInfo>, IBufferMessage
	{
		// Token: 0x17000351 RID: 849
		// (get) Token: 0x06000B50 RID: 2896 RVA: 0x000219BB File Offset: 0x0001FBBB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BattleEventBattleInfo> Parser
		{
			get
			{
				return BattleEventBattleInfo._parser;
			}
		}

		// Token: 0x17000352 RID: 850
		// (get) Token: 0x06000B51 RID: 2897 RVA: 0x000219C2 File Offset: 0x0001FBC2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BattleEventBattleInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000353 RID: 851
		// (get) Token: 0x06000B52 RID: 2898 RVA: 0x000219D4 File Offset: 0x0001FBD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BattleEventBattleInfo.Descriptor;
			}
		}

		// Token: 0x06000B53 RID: 2899 RVA: 0x000219DB File Offset: 0x0001FBDB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleEventBattleInfo()
		{
		}

		// Token: 0x06000B54 RID: 2900 RVA: 0x000219F0 File Offset: 0x0001FBF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleEventBattleInfo(BattleEventBattleInfo other) : this()
		{
			this.battleEventId_ = other.battleEventId_;
			this.status_ = ((other.status_ != null) ? other.status_.Clone() : null);
			this.skillInfo_ = other.skillInfo_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000B55 RID: 2901 RVA: 0x00021A4D File Offset: 0x0001FC4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleEventBattleInfo Clone()
		{
			return new BattleEventBattleInfo(this);
		}

		// Token: 0x17000354 RID: 852
		// (get) Token: 0x06000B56 RID: 2902 RVA: 0x00021A55 File Offset: 0x0001FC55
		// (set) Token: 0x06000B57 RID: 2903 RVA: 0x00021A5D File Offset: 0x0001FC5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BattleEventId
		{
			get
			{
				return this.battleEventId_;
			}
			set
			{
				this.battleEventId_ = value;
			}
		}

		// Token: 0x17000355 RID: 853
		// (get) Token: 0x06000B58 RID: 2904 RVA: 0x00021A66 File Offset: 0x0001FC66
		// (set) Token: 0x06000B59 RID: 2905 RVA: 0x00021A6E File Offset: 0x0001FC6E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleEventProperty Status
		{
			get
			{
				return this.status_;
			}
			set
			{
				this.status_ = value;
			}
		}

		// Token: 0x17000356 RID: 854
		// (get) Token: 0x06000B5A RID: 2906 RVA: 0x00021A77 File Offset: 0x0001FC77
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<KMADMFOAJDL> SkillInfo
		{
			get
			{
				return this.skillInfo_;
			}
		}

		// Token: 0x06000B5B RID: 2907 RVA: 0x00021A7F File Offset: 0x0001FC7F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BattleEventBattleInfo);
		}

		// Token: 0x06000B5C RID: 2908 RVA: 0x00021A90 File Offset: 0x0001FC90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BattleEventBattleInfo other)
		{
			return other != null && (other == this || (this.BattleEventId == other.BattleEventId && object.Equals(this.Status, other.Status) && this.skillInfo_.Equals(other.skillInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000B5D RID: 2909 RVA: 0x00021AF4 File Offset: 0x0001FCF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BattleEventId != 0U)
			{
				num ^= this.BattleEventId.GetHashCode();
			}
			if (this.status_ != null)
			{
				num ^= this.Status.GetHashCode();
			}
			num ^= this.skillInfo_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000B5E RID: 2910 RVA: 0x00021B57 File Offset: 0x0001FD57
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000B5F RID: 2911 RVA: 0x00021B5F File Offset: 0x0001FD5F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000B60 RID: 2912 RVA: 0x00021B68 File Offset: 0x0001FD68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BattleEventId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.BattleEventId);
			}
			if (this.status_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.Status);
			}
			this.skillInfo_.WriteTo(ref output, BattleEventBattleInfo._repeated_skillInfo_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000B61 RID: 2913 RVA: 0x00021BD4 File Offset: 0x0001FDD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BattleEventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BattleEventId);
			}
			if (this.status_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Status);
			}
			num += this.skillInfo_.CalculateSize(BattleEventBattleInfo._repeated_skillInfo_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000B62 RID: 2914 RVA: 0x00021C40 File Offset: 0x0001FE40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BattleEventBattleInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BattleEventId != 0U)
			{
				this.BattleEventId = other.BattleEventId;
			}
			if (other.status_ != null)
			{
				if (this.status_ == null)
				{
					this.Status = new BattleEventProperty();
				}
				this.Status.MergeFrom(other.Status);
			}
			this.skillInfo_.Add(other.skillInfo_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000B63 RID: 2915 RVA: 0x00021CB9 File Offset: 0x0001FEB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000B64 RID: 2916 RVA: 0x00021CC4 File Offset: 0x0001FEC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 18U)
					{
						if (num != 26U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.skillInfo_.AddEntriesFrom(ref input, BattleEventBattleInfo._repeated_skillInfo_codec);
						}
					}
					else
					{
						if (this.status_ == null)
						{
							this.Status = new BattleEventProperty();
						}
						input.ReadMessage(this.Status);
					}
				}
				else
				{
					this.BattleEventId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040004A7 RID: 1191
		private static readonly MessageParser<BattleEventBattleInfo> _parser = new MessageParser<BattleEventBattleInfo>(() => new BattleEventBattleInfo());

		// Token: 0x040004A8 RID: 1192
		private UnknownFieldSet _unknownFields;

		// Token: 0x040004A9 RID: 1193
		public const int BattleEventIdFieldNumber = 1;

		// Token: 0x040004AA RID: 1194
		private uint battleEventId_;

		// Token: 0x040004AB RID: 1195
		public const int StatusFieldNumber = 2;

		// Token: 0x040004AC RID: 1196
		private BattleEventProperty status_;

		// Token: 0x040004AD RID: 1197
		public const int SkillInfoFieldNumber = 3;

		// Token: 0x040004AE RID: 1198
		private static readonly FieldCodec<KMADMFOAJDL> _repeated_skillInfo_codec = FieldCodec.ForMessage<KMADMFOAJDL>(26U, KMADMFOAJDL.Parser);

		// Token: 0x040004AF RID: 1199
		private readonly RepeatedField<KMADMFOAJDL> skillInfo_ = new RepeatedField<KMADMFOAJDL>();
	}
}
